{% extends 'web_templates/public/base.html' %}
{% block title %}{{ g.sys.web_name }} - {{ g.sys.web_all_key }}{% endblock %}
{% block keywords %}{{ g.sys.web_key }}{% endblock %}
{% block description %}{{ g.sys.web_description }}{% endblock %}
{% block nav %}
    <li class="item navhome">
        <a href="{{ url_for('web_bp.tl_index') }}" title="{{ g.sys.web_name }}">首页</a></li>
    {% for column in g.column|sort(attribute='column_order', reverse=false) %}
        <li class="item common">
            <a href="{% if column.column_link %}{{ column.column_link }}{% else %}{{ url_for('web_bp.list_article',uuid=column.uuid) }}{% endif %}">{{ column.column_name }}</a>
        </li>
    {% endfor %}
{% endblock %}
{% block nav_ad %}
    <div class="bk4"></div>
    <div class="marginrl">
    {% for ad in g.other.ad %}{% if ad.id==2 and ad.status==1 %}{{ ad.ad_code|safe }}{% endif %}{% endfor %}
    <div class="bk4"></div>
    <div class="marginrl">
        {% for ad in g.other.ad %}{% if ad.id==3 and ad.status==1 %}{{ ad.ad_code|safe }}{% endif %}{% endfor %}
    </div>
{% endblock %}
{% block content_left %}
    <div class="cmslist newadd" style="min-height:0px;">
        <div class="xyti bgupdate">
            <h3><b>今天已更新<span style="color:#E53333;">{{ g.todayNum }} </span>个资源</b></h3>
            <p style="position:absolute;top:0px;right:0;font-size:15px;font-weight: bold;">共分享了<span
                    style="color:#E53333;">{{ g.document|count }}</span>个资源</p>
            <div class="tline"></div>
        </div>
    </div>
    <div class="uplist newadd newlist">
        <ul>
            {% for document in g.document[::-1][:38]|sort(attribute='is_index_stick', reverse=true) %}
                <li><em class="red">新</em><span
                        class="t {% if g.time.strftime("%m-%d")==document.update_time.strftime("%m-%d") %} red {% endif %}">{{ document.update_time.strftime("%m-%d") }}</span><a
                        href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}"
                        title="{{ document.title }}"
                        target="_blank">{{ document.title[:24] }}</a>
                </li>
            {% endfor %}
            <!-- 38个 -->
        </ul>
    </div>
    <div class="cmsbox">
        {% for column in g.column|sort(attribute='column_order', reverse=false) %}
            <div class="cmslist">
                <div class="xyti bgcms">
                    <h3>{{ column.column_name }}</h3>
                    <div class="tline"></div>
                    <a href="{{ url_for('web_bp.list_article',uuid=column.uuid) }}" class="more"><span
                            class="img">更多</span></a>
                </div>
                <ul>
                    {% for document in column.document_model[::-1][:8] %}
                        <li><em class="numbers">{{ loop.index }}</em>
                            <span class="cms_daye_time"
                                  style="font-size:13px;float:right; {% if g.time.strftime("%m-%d")==document.update_time.strftime("%m-%d") %} color:red {% endif %}">{{ document.update_time.strftime("%m-%d") }}</span>
                            <a href="{{ url_for('web_bp.article_article',uuid=document.uuid) }}"
                               title="{{ document.title }}">{{ document.title[:22] }}</a>
                        </li>
                    {% endfor %}
                </ul>
            </div>
        {% endfor %}
        <!-- 栏目分类 -->
    </div>
{% endblock %}
{% block frend_link %}
    <div class="frend-link">
        <h3><span class="fl">友情链接</span><span class="fr"><a>申请&amp;说明</a></span></h3>
        <dl class="clearfix">
            {% for links in g.links|sort(attribute='link_sort', reverse=false) %}
                <dd><a href="{{ links.link_url }}" title="{{ links.link_name }}" target="_blank"
                       style="font-weight:{% if links.isbold==2 %}
                           bold
                       {% endif %};{% if links.color!='#292929' %}color:{{ links.color }}{% endif %}">{{ links.link_name }}</a>
                </dd>
            {% endfor %}
        </dl>
    </div>
{% endblock %}
</div>
